package DianShang_2024.ds_server.extract

import org.apache.spark.sql.SparkSession

object test {
  def main(args: Array[String]): Unit = {

    //  准备sparksql的环境
    val spark = SparkSession.builder()
      .master("local[*]")
      .appName("数据抽取准备表格")
      .enableHiveSupport()
      .getOrCreate()

    spark.sql("use ods_server")
    spark.sql("show tables").show

    spark.close()
  }

}
